<%--
  Created by IntelliJ IDEA.
  User: qiliping
  Date: 15/11/22
  Time: 下午12:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="paging" uri="paging-taglib" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>基金列表</title>
</head>
<body>
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title">
            商品管理
            <small>商品列表</small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="${ctx}/main">
                    首页
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    客户管理
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    商品列表
                </a>
            </li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB-->
    </div>
</div>
<!-- END PAGE HEADER-->
<!------内容区----->
<div class="main">
    <form action="${ctx}/wx_shopList" method="get">
        <div class="row">
            <div class="col-md-12">
                <div class="search">
                    <div class="form-group">
                        <label class="control-label">店铺名称：</label>
                        <input type="text"  name="shopName" value="${shopName}" class="form-control form-control-inline" name="childForm"/>
                    </div>
                    <div class="form-group">
                        <label class="control-label">姓名：</label>
                        <input type="text"  name="userName" value="${userName}" class="form-control form-control-inline" name="childForm"/>
                    </div>
                    <div class="form-group" >
                        <label class="control-label">添加时间：</label>

                        <div class="date-control small">
                            <div class="input-daterange input-group">
                                <input type="text"  class="form-control fromdatetime col-md-3" size="16" value="${stime}" name="stime">
                                <span class="input-group-addon"> - </span>
                                <input type="text"  class="form-control todatetime col-md-3" size="16" value="${etime}" name="etime">
                            </div>
                        </div>
                    <span class="actions">
                        <input class="btn blue" type="submit" value="搜索"/>
                    </span>
                        <span class="actions">
                        <%--<div class="text-right">--%>
                            <%--<a href="${ctx}/product/add" class="btn blue">发布基金</a>--%>
                        <%--</div>--%>
                    </span>
                    </div>
                </div>

            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <table class="table table-striped table-hover zqy-table">
                    <thead>
                    <tr>
                        <th>店铺名</th>
                        <%--<th>店铺名称</th>--%>
                        <th>所属用户</th>
                        <th>店铺主营</th>
                        <th>店铺介绍</th>
                        <th>申请状态</th>
                        <th>申请审核人</th>
                        <th>付费金额</th>
                        <th>付费状态</th>
                        <th>地址</th>
                        <th>付费时间</th>
                        <th>店铺状态</th>
                        <th>店铺到期时间</th>

                        <th></th>
                    </tr>
                    </thead>
                    <c:forEach var="item" items="${list}">
                        <tbody>
                        <td>${item.shopName}</td>
                            <%--<td>${shop.shopName}</td>--%>
                        <td>${item.userName}</td>
                        <td>${item.shopMainProduct}</td>
                        <td>${item.shopSummary}</td>
                        <td><c:choose>
                            <c:when test="${item.applyStatus == 0}">
                                申请中
                            </c:when>
                            <c:when test="${item.applyStatus == 1}">
                                审核通过
                            </c:when>
                            <c:when test="${item.applyStatus == 2}">
                                审核不通过
                            </c:when>
                        </c:choose></td>
                        <td>${item.applyChecker}</td>
                        <td>${item.payFee}</td>
                        <td><c:choose>
                            <c:when test="${item.payStatus == 0}">
                                付费
                            </c:when>
                            <c:when test="${item.payStatus == 1}">
                                已付费
                            </c:when>
                        </c:choose></td>
                        <td>
                            ${item.addrProvinceName}${item.addrCityName}
                        </td>
                        <td> <fmt:formatDate value="${item.payTime}" pattern="yyyy-MM-dd"/></td>
                        <td> <c:choose>
                            <c:when test="${item.shopStatus == 0}">
                                待审核
                            </c:when>
                            <c:when test="${item.shopStatus == 1}">
                                待付费
                            </c:when>
                            <c:when test="${item.shopStatus == 2}">
                                运营中
                            </c:when>
                        </c:choose></td>
                        <td>
                            <fmt:formatDate value="${item.shopStartTime}" pattern="yyyy-MM-dd"/>
                        </td>

                        </tr>
                        </tbody>
                    </c:forEach>
                </table>
                <div class="text-center">
                    <ul class="pagination">
                        <paging:paging pageIndex="${pageIndex}" totalPage="${totalPage}" href="${ctx}/wx_shopList" htmlTag="li"></paging:paging>
                    </ul>
                </div>

            </div>
        </div>

    </form>
</div>
<!------[end]内容区----->

</body>
</html>